<template>
  <component :is="userStore.judgeNormalUser() ? MyNotice : AllNotice">

  </component>
</template>

<script setup lang="ts">
import AllNotice from "./components/AllNotice.vue";
import MyNotice from "./components/MyNotice.vue";

import { useUserStore } from "@/store/index";
const userStore = useUserStore();


//判断当前登录用户是否为普通用户或工作人员来决定是否展示所有通知内容
</script>
<style lang="scss" scoped></style>